package com.ifengchao.dao.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.ifengchao.dao.IBatisBaseDao1;
import com.ifengchao.dao.IBatisBaseDao3;
import com.ifengchao.dao.iface.SolrSearchDao;
import com.ifengchao.pojo.HForumPost;
import com.ifengchao.pojo.HUser;

/**
 * 搜索查询数据库
 *
 * @author loki.xu
 * @version V1.0
 * 
 * @date 2018年1月9日 下午2:54:50
 */
@Repository
public class SolrSearchDaoImpl implements SolrSearchDao {

	private static final Logger logger = Logger.getLogger(SolrSearchDaoImpl.class);

	@Autowired(required = true)
	private IBatisBaseDao1 iBatisBaseDao1;

	@Override
	public List<HForumPost> getPostList() {
		logger.info("查询符合推送搜索的帖子数据");
		return iBatisBaseDao1.getSqlMapClientTemplate().queryForList("solrSearchSql.getPostList");
	}

}
